/* 统计数据页面样式 */

/* 发电数据看板 */
.today-generation, .monthly-generation, .hourly-generation {
    margin-bottom: 24px;
  }
  
  .progress-container {
    display: flex;
    justify-content: center;
    margin: 15px 0;
  }
  
  .progress-ring {
    position: relative;
    width: 120px;
    height: 120px;
  }
  
  .progress-ring-circle-bg {
    fill: none;
    stroke: #e6e6e6;
    stroke-width: 8;
  }
  
  .progress-ring-circle {
    fill: none;
    stroke: var(--success-color);
    stroke-width: 8;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 0.5s ease;
  }
  
  .progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
  }
  
  .generation-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
  }
  
  .generation-target {
    font-size: 0.9rem;
    opacity: 0.7;
  }
  
  .monthly-stats {
    display: flex;
    align-items: center;
    margin-top: 16px;
  }
  
  .monthly-value {
    flex: 1;
    font-size: 1.3rem;
    font-weight: 600;
  }
  
  .trend {
    display: inline-flex;
    align-items: center;
    margin-top: 5px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
  }
  
  .trend.up {
    background-color: rgba(0, 204, 136, 0.2);
    color: var(--success-color);
  }
  
  .trend.down {
    background-color: rgba(255, 51, 51, 0.2);
    color: var(--danger-color);
  }
  
  .trend i {
    margin-right: 4px;
  }
  
  .monthly-chart {
    display: flex;
    align-items: flex-end;
    flex: 1;
    height: 60px;
    gap: 5px;
  }
  
  .chart-bar {
    flex: 1;
    background-color: var(--primary-color);
    border-radius: 3px 3px 0 0;
    transition: height 0.5s ease;
  }
  
  .hourly-chart {
    height: 180px;
    margin-top: 16px;
  }
  
  /* 电力分配面板 */
  .distribution-container {
    display: flex;
    margin-top: 16px;
    margin-bottom: 16px;
  }
  
  .pie-chart-container {
    flex: 1;
    height: 150px;
  }
  
  .distribution-details {
    flex: 1;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .distribution-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
  }
  
  .item-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    margin-right: 8px;
  }
  
  .distribution-item.home .item-color {
    background-color: var(--primary-color);
  }
  
  .distribution-item.load .item-color {
    background-color: var(--secondary-color);
  }
  
  .item-label {
    font-weight: 500;
    margin-right: 8px;
  }
  
  .saving-info {
    text-align: center;
    font-weight: 500;
    color: var(--success-color);
    padding-top: 16px;
    border-top: 1px solid #eee;
  }
  
  .saving-info i {
    margin-right: 8px;
  }
  
  /* 时间选择器 */
  .time-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
  }
  
  .time-option {
    padding: 6px 16px;
    border: 1px solid #ddd;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  .time-option:first-child {
    border-radius: 4px 0 0 4px;
  }
  
  .time-option:last-child {
    border-radius: 0 4px 4px 0;
  }
  
  .time-option.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
  }
  
  /* 图表说明 */
  .chart-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
  }
  
  .legend-item {
    display: flex;
    align-items: center;
  }
  
  .legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin-right: 6px;
  }
  
  .legend-label {
    font-size: 0.9rem;
    color: #666;
  }
  
  /* 响应式布局 */
  @media (max-width: 480px) {
    .distribution-container {
      flex-direction: column;
    }
    
    .distribution-details {
      padding-left: 0;
      margin-top: 20px;
    }
    
    .pie-chart-container {
      height: 180px;
    }
  }

  /* 暗色模式样式 */
  .dark-mode .today-generation,
  .dark-mode .monthly-generation,
  .dark-mode .hourly-generation {
    background-color: #1e1e1e;
    color: #e0e0e0;
  }

  .dark-mode .time-option {
    background-color: #1e1e1e;
    color: #e0e0e0;
    border-color: #333;
  }

  .dark-mode .legend-label {
    color: #aaa;
  }

  .dark-mode .saving-info {
    border-top-color: #333;
  }